package dancetwotiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceActivitiesDrawPrizeExchangeConditions 光环活动条件
type DanceActivitiesDrawPrizeExchangeConditions struct {
	Id                int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	ActivitiesId      int64          `json:"activitiesId" gorm:"column:activities_id;type:bigint;default:0;not null;comment:活动id"` // 开始时间
	TypeActivitiesOne int            `json:"conditionsTypeOne" gorm:"column:conditions_type_one;type:bigint;default:0;not null;comment:一级类型"`
	TypeActivities    int            `json:"conditionsType" gorm:"column:conditions_type;type:bigint;default:0;not null;comment:固定 80"`   //奖品类型
	ExchangeNumber    int            `json:"exchangeNumber" gorm:"column:exchange_number;type:bigint;default:0;not null;comment:0："`      // 兑换碎片数量，星光值和碎片为0
	PieceElementNo    int64          `json:"pieceElementNo" gorm:"column:piece_element_no;type:bigint;default:0;not null;comment:命中开始区间"` // 碎片编号
	ElementNo         int64          `json:"elementNo" gorm:"column:element_no;type:bigint;default:0;not null;comment:碎片兑换的奖品编号"`
	ValidityPeriod    int64          `json:"validityPeriod" gorm:"column:validity_period;type:bigint;default:0;not null;comment:有效期"` // 星光值
	ElementNum        int64          `json:"elementNum" gorm:"column:element_num;type:bigint;default:0;not null;comment:数量"`          // 数量
	CreatedId         int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"`        // 创建人id
	CreatedAt         time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt         time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt         gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
